package com.ruoyi.committeeSys.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.committeeSys.mapper.TbExpertCommitteeMapper;
import com.ruoyi.committeeSys.domain.TbExpertCommittee;
import com.ruoyi.committeeSys.service.ITbExpertCommitteeService;

/**
 * 专家委员会Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-08
 */
@Service
public class TbExpertCommitteeServiceImpl implements ITbExpertCommitteeService 
{
    @Autowired
    private TbExpertCommitteeMapper tbExpertCommitteeMapper;

    /**
     * 查询专家委员会
     * 
     * @param id 专家委员会主键
     * @return 专家委员会
     */
    @Override
    public TbExpertCommittee selectTbExpertCommitteeById(Long id)
    {
        return tbExpertCommitteeMapper.selectTbExpertCommitteeById(id);
    }

    /**
     * 查询专家委员会列表
     * 
     * @param tbExpertCommittee 专家委员会
     * @return 专家委员会
     */
    @Override
    public List<TbExpertCommittee> selectTbExpertCommitteeList(TbExpertCommittee tbExpertCommittee)
    {
        return tbExpertCommitteeMapper.selectTbExpertCommitteeList(tbExpertCommittee);
    }

    /**
     * 新增专家委员会
     * 
     * @param tbExpertCommittee 专家委员会
     * @return 结果
     */
    @Override
    public int insertTbExpertCommittee(TbExpertCommittee tbExpertCommittee)
    {
        return tbExpertCommitteeMapper.insertTbExpertCommittee(tbExpertCommittee);
    }

    /**
     * 修改专家委员会
     * 
     * @param tbExpertCommittee 专家委员会
     * @return 结果
     */
    @Override
    public int updateTbExpertCommittee(TbExpertCommittee tbExpertCommittee)
    {
        return tbExpertCommitteeMapper.updateTbExpertCommittee(tbExpertCommittee);
    }

    /**
     * 批量删除专家委员会
     * 
     * @param ids 需要删除的专家委员会主键
     * @return 结果
     */
    @Override
    public int deleteTbExpertCommitteeByIds(Long[] ids)
    {
        return tbExpertCommitteeMapper.deleteTbExpertCommitteeByIds(ids);
    }

    /**
     * 删除专家委员会信息
     * 
     * @param id 专家委员会主键
     * @return 结果
     */
    @Override
    public int deleteTbExpertCommitteeById(Long id)
    {
        return tbExpertCommitteeMapper.deleteTbExpertCommitteeById(id);
    }
}
